/*    */ package com.qmsk.business.manage.funcOper.controller;
/*    */ 
/*    */ import com.qmsk.business.manage.funcOper.dao.UserFunOperDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.sql.SQLException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/userFunOper"})
/*    */ public class UserFunOperController
/*    */ {
/* 25 */   private static final Logger logger = Logger.getLogger(UserFunOperController.class);
/*    */ 
/*    */   @Autowired
/*    */   private UserFunOperDAO dao;
/*    */ 
/*    */   @RequestMapping(value={"find/shopId/{shopId}/pId/{pId}/{userId}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListOfFunId(HttpServletRequest request, HttpServletResponse response, @PathVariable("pId") String pId, @PathVariable("userId") String userId)
/*    */   {
/*    */     try
/*    */     {
/* 35 */       GsonEbRst gsonEbRst = this.dao.getGsonOfParentId(pId, userId);
/* 36 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 38 */       logger.error(e);
/* 39 */       ResponseUtils.setErrorMsgResponse(
/* 40 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.manage.funcOper.controller.UserFunOperController
 * JD-Core Version:    0.5.3
 */